import seaborn as sns
import matplotlib.pyplot as plt

# 加载示例数据集
tips = sns.load_dataset('tips')

# # 绘制箱线图
# sns.boxplot(x='day', y='total_bill', data=tips)
# plt.title('Box Plot of Total Bill by Day')
#
# # 显示图形
# plt.show()


# 绘制散点图
sns.scatterplot(x='total_bill', y='tip', hue='day', data=tips)
plt.title('Scatter Plot of Total Bill vs Tip')

# 显示图形
plt.show()

